/*************************************************************************
	> File Name: shdev.c
	> Author: yuarmy
	> Mail: yuarmy@126.com 
	> Created Time: Thu 07 Aug 2014 05:14:20 AM PDT
 ************************************************************************/

#include<stdio.h>
#include "shdev.h"
#include "shdevmag.h"
#include "uart.h"
#include "shsocket.h"

SHDEVMANAGE_T shdevmag_;
int32_t InitSHDev(SHDEV_T *shdev) {
  int32_t ret = 0;

  ret = InitSH(&shdevmag_);
  return ret;
}
int32_t RunSHDev(SHDEV_T *shdev) {
  int32_t ret = 0;

  ret = process(&shdevmag_);
  return ret;
}
int32_t DeinitSHDev(SHDEV_T *shdev) {
  int32_t ret = 0;

  DeinitUartTerm(&shdevmag_);
  return ret;
}
